import Vue from 'vue'
import Vuex from 'vuex'
import createCommon from './common'
import createUser from './user'

Vue.use(Vuex)

export function createStore (http) {
  return new Vuex.Store({
    modules: {
      common: createCommon(http),
      user: createUser(http)
    }
  })
}
